import request from '@/utils/request'

// 查询AGV数据调度记录列表
export function listAgvTaskDispatchRecord(query) {
  return request({
    url: '/wcs/agvTaskDispatchRecord/list',
    method: 'get',
    params: query
  })
}

// 查询AGV数据调度记录详细
export function getAgvTaskDispatchRecord(id) {
  return request({
    url: '/wcs/agvTaskDispatchRecord/' + id,
    method: 'get'
  })
}

// 新增AGV数据调度记录
export function addAgvTaskDispatchRecord(data) {
  return request({
    url: '/wcs/agvTaskDispatchRecord',
    method: 'post',
    data: data
  })
}

// 修改AGV数据调度记录
export function updateAgvTaskDispatchRecord(data) {
  return request({
    url: '/wcs/agvTaskDispatchRecord',
    method: 'put',
    data: data
  })
}

// 删除AGV数据调度记录
export function delAgvTaskDispatchRecord(id) {
  return request({
    url: '/wcs/agvTaskDispatchRecord/' + id,
    method: 'delete'
  })
}
